package jun.learn.spring.interceptor;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
	public static void main(String[] args) {
		ApplicationContext atx = new ClassPathXmlApplicationContext("classpath:jun/learn/spring/interceptor/applicationContext.xml");
		System.out.println(atx);
		ServicetTest servie =(ServicetTest) atx.getBean("service");
		try {
			servie.test();
		} catch (Exception e) {
			System.out.println(e.getMessage());
		}
	}
}
